(repeat-echo-message-string): Reuse 'r-m-c' prompt formatting
authorEshel Yaron <me@eshelyaron.com>
Wed, 8 May 2024 16:05:20 +0000 (18:05 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 8 May 2024 16:05:20 +0000 (18:05 +0200)
commit840c33070dc789d5095a47fa65f4f77564cd6e59
tree40bb3bb3a17285ffe294870df4fbd6cd6f177403
parentde5a89254cb8645143e9f4e51a1727a7237109e8
(repeat-echo-message-string): Reuse 'r-m-c' prompt formatting

Now that 'repeat-mode' supports adding labels ("hints") next to
available keys, its prompt is very similar in its structure to
what we have in 'read-multiple-choice' (a list of labeled keys).
To make the two interfaces more consistent, reuse the prompt
formatting that 'read-multiple-choice' employs.

See short discussion at
https://lists.gnu.org/archive/html/emacs-devel/2024-05/msg00467.html

* lisp/repeat.el (repeat-echo-message-string): Use
'rmc--add-key-description' to format keys and their labels.
lisp/repeat.el